import Layout from '@/layout'

const demoRouter = {
    name: 'demoComp',
    path: '/demoComp',
    component: Layout,
    meta: {
        title: '自定义组件',
        icon: 'el-icon-s-platform'
    },
    children: [
        {
            path: 'drawerDemo',
            component: () => import('@/views/demoComp/drawerDemo.vue'),
            name: 'drawerDemo',
            meta: {title: '抽屉', noCache: false}
        },
        {
            path: 'layoutOne',
            component: () => import('@/views/demoComp/layoutOne.vue'),
            name: 'layoutOne',
            meta: {title: '页面布局一', noCache: false}
        },
        {
            path: 'layoutTwo',
            component: () => import('@/views/demoComp/layoutTwo.vue'),
            name: 'layoutTwo',
            meta: {title: '页面布局二', noCache: false}
        },
        {
            path: 'treeDemo',
            component: () => import('@/views/demoComp/treeDemo.vue'),
            name: 'treeDemo',
            meta: {title: '树形', noCache: false}
        },
    ]
}

export default demoRouter
